<div id="preview">
    <div class="wrapper">
        <div id="showcase">
            <div class="rounded-corners-top"></div>
            <div class="rounded-corners-bottom"></div>
            <div class="slider automatic frontpage">
                <?php foreach ($products as $product) { ?>
                    <a href="#"><?= image_tag('product_image/' . $product['img_url'], array("width" => "940", "height" => "420", "title" => $product['name'] . " (" . $product->getCategory() . ")")); ?></a>
                <?php } ?>
            </div>
        </div>
        <br>
        <h3>
            Application for approval of an active constituent contained in a chemical product, assessment of the active constituent and chemical product.
        </h3>
    </div>
</div>



<div class="wrapper">
    <div id="content">
        <div class="entry">
            <h2>Latest Products ...</h2>
            <?php $i = 0; ?>
            <?php foreach ($products as $product) {
                $i++ ?>
                <div class="one-third portfolio-item <?php if ($i == 3) echo'last'; ?>">
                    <a href="<?= image_path('product_image/' . $product['img_url']) ?>" rel='lightbox[featured]'>
    <?= image_tag('product_image/' . $product['img_url'], array("class" => "rounded", "width" => "280", "height" => "125")); ?>
                    </a>
                    <h3><a href="<?= url_for('product/show') . "/prid/" . $product['id'] ?>"><?= $product['name'] ?></a></h3>
                    <p>
    <?= nl2br($product['description']) ?>
                        <span class="read-more">
                            <a href="<?= url_for('product/show') . "/prid/" . $product['id'] ?>">Read more »</a>
                        </span>
                    </p>
                </div>
                <?php if ($i == 3) break; ?>
<?php } ?>
        </div>
    </div>
</div>